#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include<string>
int main()
{
	int hour, minute;
	scanf("%d:%d", &hour, &minute);
	if ((hour >= 0 && hour <= 11) || (hour == 12 && minute == 0))
		printf("Only %02d:%02d.  Too early to Dang.", hour, minute);
	else
		for (int i = 0; i < (minute > 0 ? hour + 1 : hour) - 12; i++)
			printf("Dang", i);
	system("PAUSE");
	return 0;
}